<?php 
namespace admin\assets;

use yii\web\AssetBundle;

class AppMain extends AssetBundle {
	public $basePath = '@webroot';
    public $baseUrl = '@web';
	
	public $css = [
		'statics/css/style.min.css',
		'statics/css/main.css',
		'statics/css/font-awesome.min.css'
    ];
    public $js = [
       'statics/js/plugins/layer/layer.js',
       'statics/js/common.js'
    ];
	public $depends = [
        'yii\web\YiiAsset',
        'yii\bootstrap\BootstrapAsset',/*依赖包*/
    ];
	public static function addCss($view,$cssfile) { 
 		$view->registerCssFile($cssfile,[AppAsset::className(),'depends'=>'admin\assets\appmain']);
	}
}
?>

